<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
%>
<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c"%>
<%@ taglib uri="/WEB-INF/tld/sys.tld" prefix="sys" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<style type="text/css">
</style>
<jsp:include page="../../import.jsp" flush="true" />
</head>

<body class="iframeBody">
	<div class="Wrapper">
		<div>
			<div id="pageInTab" class="pageInTab">
				<div tabid="tabBankList" title="集团公司" lselected="true">
					<iframe frameborder="0" name="tabBankList" id="tabBankList"
						src="<%=path%>/account/fncGroupCompany/toListPage.do"></iframe>
				</div>
				<div tabid="bankAccManage" title="账户管理">
					<iframe frameborder="0" name="bankAccManage" id="bankAccManage"
						src="<%=path%>/account/fncGroupCompanyAccount/toListPage.do"></iframe>
				</div>
			</div>
		</div>
	</div>

	<script>
	<sys:funcAuth resCd="fncGroupCompanyAccount_all">
		$('#bankAccManage').attr('src', '<%=path%>/account/fncGroupCompanyAccount/toListPage.do?from=queryAll');
    </sys:funcAuth>
    
    var pageInApp={}; 
    $(function() {
        pageInTab = $("#pageInTab").ligerTab({
            height: 'auto',
            contextmenu: false,
            minIframeHeight: GET_minIframeHeight(),
            onAfterSelectTabItem: function(tabid) {
            	pageInTab.reload(tabid);
                <%--  if (tabid == "bankAccManage") {
                    var row = pageInApp.seletedBankRow;
                    var parm = '';
                    if(row) parm = row.id
                    var oldUrl=pageInTab.getTabItemSrc(tabid),
                       // url="../settings/bankaccount-manage.htm?parm="+parm;
                        url="<%=path%>/account/fncGroupCompanyAccount/toListPage.do"+parm;
                    var indexofO=oldUrl.lastIndexOf("/"),
                        indexofU=url.lastIndexOf("/")
                    //alert(url + "\n" + oldUrl);
                    if (oldUrl.slice(indexofO) != url.slice(indexofU)) {
                        pageInTab.setTabItemSrc(tabid, url);
                        pageInTab.reload(tabid);
                    };
                };  --%>
                if (parent && parent.mainApp) parent.mainApp.parentTab.onResize();
            }
        });

        $.extend(true, pageInApp, {
            pageInTab: pageInTab
        });
    })
    </script>
</body>

</html>
